From a626ad31e84482fef132f51940ab4a5f80086388 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 23 Jun 2000 18:41:16 +0000 Subject: [PATCH] - A number of types in GDK have become subclasses of GObject. For the most part, this should not break anyone's code. However, it's now possible/encouraged to use g_object_ref()/g_object_unref() and other GObject features with these GDK types. The converted types are: GdkWindow, GdkDrawable, GdkPixmap, GdkImage, GdkGC, GdkDragContext, GdkColormap - All drawables including pixmaps used to have a type tag, the GdkWindowType enumeration, which included GDK_WINDOW_PIXMAP. GdkWindowType is now a property of GdkWindow _only_, and there is no GDK_WINDOW_PIXMAP. You can use the GDK_IS_PIXMAP() macro to see if you have a pixmap, if you need to know that. - GtkStyle and GtkRcStyle are now subclasses of GObject as well. This breaks theme engines quite badly, but shouldn't affect most other code. - xthickness/ythickness have moved from GtkStyleClass to GtkStyle (from class to instance). This gives themes a bit more flexibility and is generally more of the Right Thing. You can trivially fix your code with s/style->klass->xthickness/style->xthickness/g and same for ythickness. --- docs/Changes-1.4.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/Changes-1.4.txt b/docs/Changes-1.4.txt index 61d3898b52..e75a97e4a1 100644 --- a/docs/Changes-1.4.txt +++ b/docs/Changes-1.4.txt @@ -119,3 +119,32 @@ Incompatible Changes from GTK+-1.2 to GTK+-1.4: - The 'font' and 'font_set' declarations in RC files are now ignored. There is a new 'font_name' field that holds the string form of a Pango font +- A number of types in GDK have become subclasses of GObject. For the + most part, this should not break anyone's code. However, it's now + possible/encouraged to use g_object_ref()/g_object_unref() and other + GObject features with these GDK types. The converted types are: + GdkWindow, GdkDrawable, GdkPixmap, GdkImage, GdkGC, GdkDragContext, + GdkColormap + +- All drawables including pixmaps used to have a type tag, the + GdkWindowType enumeration, which included GDK_WINDOW_PIXMAP. + GdkWindowType is now a property of GdkWindow _only_, and there is + no GDK_WINDOW_PIXMAP. You can use the GDK_IS_PIXMAP() macro to see + if you have a pixmap, if you need to know that. + +- GtkStyle and GtkRcStyle are now subclasses of GObject as well. + This breaks theme engines quite badly, but shouldn't affect most + other code. + +- xthickness/ythickness have moved from GtkStyleClass to GtkStyle + (from class to instance). This gives themes a bit more flexibility + and is generally more of the Right Thing. You can trivially fix + your code with s/style->klass->xthickness/style->xthickness/g and + same for ythickness. + +- If you were using private GDK types, they have been rearranged + significantly. You shouldn't use private types. ;-) + + + + \ No newline at end of file -- 2.30.2